//
//  TKIMMessage+TKIMExtMsg.h
//  TKIMSDK
//
//  Created by TryHone on 16/6/30.
//  Copyright © 2016年 TryHone. All rights reserved.
//

#import "TKIMMessage.h"

//消息内容类型
typedef NS_ENUM(NSInteger, TKIMMsgExtType) {
    TKIMMsgExtYCSMS = 14,
    TKIMMsgExtAI = 15, //智能客服消息
    TKIMMsgExtAccountAuth = 16, //申请授权
    TKIMMsgExtYCNONE = 17 //不需要覆盖的
};

typedef NS_ENUM(NSInteger, TKIMMsgAccountActionType) {
    TKIMMsgAccountActionType_None = 0, //不执行操作
    TKIMMsgAccountActionType_Apply = 1, //申请授权
    TKIMMsgAccountActionType_Success = 2 //授权成功
};

@interface TKIMQuestion : NSObject
@property (nonatomic, copy) NSString* questionid;
@property (nonatomic, copy) NSString* title;
@property (nonatomic, assign) NSInteger txtType;
@property (nonatomic, copy) NSString* sourceType;
@end

@interface TKIMMessage (TKIMExtMsg)
@property (nonatomic, assign) TKIMMsgExtType msgType;
@property (nonatomic, copy) NSString* msgRemark; //针对模板消息

@property (nonatomic, assign, readonly) BOOL isLoadFromService; //是不是走漫游接口过来的
@property (nonatomic, assign, readonly) NSInteger LoadFromServiceMsgCount; //漫游了多少条数据

@property (nonatomic, assign) BOOL isNotAcceptPush; //是不是免打扰功能
@property (nonatomic, assign) BOOL isNeedOtherManage; //是否需要第三方处理
@property (nonatomic, assign) NSInteger showStytle; //0 默认 1 显示一创的样式

//智能客服相关的
@property (nonatomic, copy, readonly) NSArray* likeQuestion;
@property (nonatomic, assign, readonly) BOOL noAnswer; //判断智能客服是否返回答案
@property (nonatomic, assign, readonly) BOOL canBack; //是否出现反馈按钮为了训练智能客服;
//授权相关两个字段
@property (nonatomic, assign, readonly) TKIMMsgAccountActionType authType;
@property (nonatomic, copy, readonly) NSString* tipText; //点击字符串

@end
